﻿using System.Data.Entity;

namespace Lumos.Models
{
    public class LumosDbContext : DbContext
    {
        public LumosDbContext()
            : base("LumosDBConnection")
        {
        }

        protected override void OnModelCreating(DbModelBuilder modelBuilder)
        {
            modelBuilder.Entity<Users>().ToTable("AspNetusers");
            modelBuilder.Entity<Roles>().ToTable("AspNetRoles");
        }

        /*  TABLES 
        ---------------------------- */

        //user related
      //  public DbSet<Roles> MyProperty { get; set; }

        public DbSet<GroupsDbModel> Groups { get; set; }

        public System.Data.Entity.DbSet<Lumos.Models.Roles> Roles { get; set; }

    }
}